﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HomePage.master" AutoEventWireup="true"
    CodeFile="HinhAnhND.aspx.cs" Inherits="HinhAnhND" %>
    <%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>
<%@ Register Assembly="PagerControl" Namespace="CutePager" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:HiddenField ID="H_PageCount" Value="0" runat="server" />
    <asp:HiddenField ID="H_IdBoSuuTap" Value="0" runat="server" />
    <span class="path_chude">
        <asp:HyperLink ID="Hyperlink13" CssClass="icon_sub" runat="server" NavigateUrl="~/">Trang chủ</asp:HyperLink>
    </span><span class="path_chude">
        <asp:HyperLink ID="Hyperlink1" CssClass="icon_sub" runat="server" NavigateUrl="#">Ảnh Đẹp</asp:HyperLink></span>
    <div class="detail_content">
        <div class="detail_content_top">
        </div>
        <div class="detail_content_mid">
            <div class="detail_content_mid_content">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td id="chitietanhdep" valign="top" height="250px">
                            <div style="margin-top: 18px;">
                                <asp:Image runat="server" Width="246px" Height="185px" ID="imgAnhDep" BorderWidth="0" />
                            </div>
                        </td>
                        <td valign="top" height="250px">
                            <asp:Label runat="server" ID="lblbst" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: left;" class="new_small_SachHay" colspan="2">
                           <div>
                                <div style="float: left" class="like_small">
<div class="fb-like" data-href='<%# GetLienKet()+"/HinhAnhND.aspx?IdImage=" + Eval("Id") + "&Ten=" + GetTieuDe(Eval("Ten"))%>' data-send="true" data-width="450" data-show-faces="false"></div>
<div class="share_small" style="float: right"><asp:Label ID="lblChiaSe" runat="server" Text=""></asp:Label> chia sẻ</div>
<div class="comment_small" style="float: right;"><asp:Label ID="lblComment" runat="server" Text=""></asp:Label> bình luận</div> 
 </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div class="detail_new_chitiet" style="text-align: justify; padding: 20px">
                                <asp:Label ID="lblNoiDungTin" CssClass="text_content" runat="server" Text=""></asp:Label>
                            </div>
                        </td>
                    </tr>
                </table>
                <div class="form_comment">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td>
                                <span class="comment_label">Tên của bạn:</span>
                            </td>
                            <td>
                                <asp:TextBox CssClass="comment_input" ID="txtName" Text="Nhập tên" value="Nhập tên"
                                    onblur="if(this.value=='') this.value='Nhập tên';" onfocus="if(this.value=='Nhập tên') this.value='';"
                                    runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" SetFocusOnError="True"
                                    InitialValue="0" ControlToValidate="txtName" Display="Dynamic" ErrorMessage=" (*)"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span class="comment_label">Email</span>
                            </td>
                            <td>
                                <asp:TextBox CssClass="comment_input" ID="txtEmails" Text="Nhập Email" value="Nhập Email"
                                    onblur="if(this.value=='') this.value='Nhập Email';" onfocus="if(this.value=='Nhập Email') this.value='';"
                                    runat="server"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmails"
                                    Text="(Email sai)" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                    ErrorMessage="*"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span class="comment_label">Nội dung</span>
                            </td>
                            <td>
                                <asp:TextBox CssClass="comment_content" Rows="5" ID="txtNoiDung" value="Nhập Nội dung"
                                    onblur="if(this.value=='') this.value='Nhập Nội dung';" onfocus="if(this.value=='Nhập Nội dung') this.value='';"
                                    Text="Nhập Nội dung" runat="server" TextMode="MultiLine"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" SetFocusOnError="True"
                                    InitialValue="0" ControlToValidate="txtNoiDung" Display="Dynamic" ErrorMessage=" (*)"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span class="comment_label">Mã xác nhận</span>
                            </td>
                            <td>
                                <span class="comment_label">
                                    <asp:Label ID="lblResult" runat="server" />
                                    <cc1:CaptchaControl ID="CaptchaControl1" runat="server" CaptchaBackgroundNoise="none"
                                        CaptchaLength="5" CaptchaHeight="60" CaptchaWidth="200" CaptchaLineNoise="None"
                                        CaptchaMinTimeout="5" />
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span class="comment_label">Nhập mã xác nhận</span>
                            </td>
                            <td>
                                <asp:TextBox CssClass="comment_input" value="Nhập Mã Xác Nhận" onblur="if(this.value=='') this.value='Nhập Mã Xác Nhận';"
                                    onfocus="if(this.value=='Nhập Mã Xác Nhận') this.value='';" Text="Nhập Mã Xác Nhận"
                                    runat="Server" ID="txtCaptcha" />
                            </td>
                        </tr>
                        <td>
                            <asp:ImageButton ID="cmdSend" CssClass="botton_send_comment" CausesValidation="false"
                                ImageUrl="~/Images/button_send.png" runat="server" OnClick="cmdSend_Click" />
                        </td>
                        </tr>
                    </table>
                </div>
                <!--End #form_comment-->
                <div class="user_comment_khung">
                    <div>
                        <p>
                            <span class="user_comment_label">Bình luận:</span>
                            <p class="user_comment_gachngang">
                            </p>
                    </div>
                    <asp:DataList ID="dlcomment" runat="server" RepeatColumns="1" RepeatDirection="Horizontal"
                        Width="100%">
                        <ItemTemplate>
                            <div class="user_comment">
                                <asp:Image runat="server" BorderWidth="1" ID="Image1" ImageUrl="~/Images/img_new_small.png" />
                                <div class="user_comment_right">
                                    <div class="user_comment_right_top">
                                    </div>
                                    <div class="user_comment_right_mid">
                                        <div class="user_comment_right_mid_content">
                                            <p>
                                                <span class="name_user_comment">
                                                    <%# Eval("Ten") %></span></span></p>
                                            <%# Eval("NoiDung") %>
                                        </div>
                                        <!--End #user_comment_right_mid_content-->
                                    </div>
                                    <!--End #user_comment_right_mid-->
                                    <div class="user_comment_right_bottom">
                                    </div>
                                    <p class="user_comment_icon_left">
                                    </p>
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:DataList>
                    <cc1:Pager ID="Pager2" runat="server" PreviousClause="Lùi" NextClause="Tiến" LastClause=""
                        FirstClause="" PageClause="Trang " OfClause=" /" PageSize="10" OnCommand="Pager2_Command"
                        ForeColor="#006600" Font-Bold="True" />
                </div>
                <div class="user_comment_khung">
                    <div>
                        <p>
                            <span class="user_comment_label">Album liên quan:</span>
                            <p class="user_comment_gachngang">
                            </p>
                        </p>
                    </div>
                    <div>
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <table border="0" width="100%" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td width="16">
                                            <asp:ImageButton ID="cmdPrevious" ImageUrl="~/Images/next.png" runat="server" OnClick="cmdPrevious_Click"
                                                CausesValidation="false" />
                                        </td>
                                        <td>
                                            <cc1:Pager ID="Pager1" runat="server" Visible="false" PreviousClause="" NextClause=""
                                                LastClause="" FirstClause="" PageClause="Trang" OfClause="/" PageSize="3" OnCommand="Pager1_Command">
                                            </cc1:Pager>
                                            <asp:DataList ID="dlSoBuuTap" runat="server" BackColor="Transparent" BorderColor="Transparent"
                                                RepeatColumns="3" RepeatDirection="Horizontal" Width="90%">
                                                <ItemTemplate>
                                                    <div class="albumanhdep_khunghinh2">
                                                        <a href="HinhAnhND.aspx?IdImage=<%# Eval("Id")%>">
                                                            <asp:Image ID="img" CssClass="imgviewer" runat="server" ImageUrl='<%# GetImageBoSuuTap(Eval("Id"))%>'
                                                                BorderWidth="0px" />
                                                        </a>
                                                        <div style="font-size: 11pt; text-align: center; margin-left: -55px; padding-top: 10px">
                                                            <span style="font-weight: bold;">
                                                                <%# Eval("Ten")%></span></div>
                                                    </div>
                                                </ItemTemplate>
                                                <ItemStyle Wrap="True" BackColor="Transparent" BorderColor="Transparent" />
                                                <EditItemStyle BackColor="Transparent" BorderColor="Transparent" />
                                                <SelectedItemStyle BackColor="Transparent" BorderColor="Transparent" />
                                                <AlternatingItemStyle BackColor="Transparent" BorderColor="Transparent" />
                                                <HeaderStyle BackColor="Transparent" BorderColor="Transparent" />
                                            </asp:DataList>
                                        </td>
                                        <td width="16">
                                            <asp:ImageButton ID="cmdNext" ImageUrl="~/Images/back.png" runat="server" OnClick="cmdNext_Click"
                                                CausesValidation="false" />
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="cmdPrevious" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="cmdNext" EventName="Click" />
                                <asp:AsyncPostBackTrigger ControlID="Pager1" EventName="Command" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </div>
                </div>
            </div>
        </div>
        <div class="detail_content_bottom">
        </div>
    </div>
</asp:Content>
